Best practices for open api application development and best practices for api application development
In the company's internal system, there will be some third-party Data Access scenarios, for example, in Ctrip's app, you can see iron's ticket, you can find the hotel where to go in the Meituan hotel list. This data i
SolrJ API official documentation best practices, solrj Best Practices
The following content is translated from the Solr Wiki official document. It is copyrighted and can be reproduced at will.
Solrj is a Java client that accesses solr. It provides a java interface for adding, updating, and querying solr indexes. This page introduces the latest version of Solr
that better practices are placed in URLs, which makes it more intuitive to see the version of the API that is currently in use.
However, there are tradeoffs between how to use the--strip API versioning:
The main version number is placed in the URL to indicate the overall structure of the
format. The API should always return the appropriate status code to reflect the status of the server or request. API error codes can be divided into two parts, 400 series and 500 series, and400 series indicate client error : such as bad Request format. The 500 series represents a server error . The API should return at least all of the 400 series errors in the j
into two parts, 400 series and 500 series, and 400 series indicate client error: such as bad Request format. The 500 series represents a server error. The API should return at least all of the 400 series errors in JSON form. This should be true if the 500 series errors are possible. Errors in JSON format should contain the following information: A useful error message, a unique error code, and any possible detailed error description. As follows:
a liberal). So my goal in this article is to start from a practical point of view, give the current Web application of API design best practices (of course, I think the best ~), if it is not appropriate, I will not comply with the standard. Of course, as the basis of design, a few of the principles must be adhered to:
Comply with standards when the standards are reasonable.
The
"college", they may be more theoretical, but sometimes derail the real world (so I'm a liberal). So my goal in this article is to start from a practical point of view, give the current Web application of API design best practices (of course, I think the best ~), if it is not appropriate, I will not comply with the standard. Of course, as the basis of design, a few of the principles must be adhered to:
Web APIs has become a very important topic in the last year. We at M-way Solutions is working every day with different backend systems and therefore we know about the importance of a Clean API design.Typically we use a RESTful design for our web APIs. The concept of REST is to separate the APIs structure into logical resources. There is used the HTTP methods GET, DELETE, POST and PUT to operate with the resources.These is best
simplicity, save the token in a global variable. Window.token =data. Token; Alert ("Login Successful"); } Else{alert ("Login failed:" +data. Message); } } }); }); //invokes an interface that obtains data from an API site that requires authentication. $ ("#invoke"). On ("click",function() {$.ajax ({URL:
Python calls Sina Weibo API project practices, pythonapi
I recently came into use to call the Sina Weibo open interface, so I would like to try using python to call the Weibo API.
SDK: http://open.weibo.com/wiki/SDK code is not more than a dozen K, can fully understand.
If you have a Weibo account, you can create an APP and then obtain the app key and app secret.
Ylbtech-jasper:api / API policies and best Practices
1. back to top
1. API Policies and best practicesCisco Jasper has established an API fair usage policy to ensure that all Control Center users have the best experience possible. Any client code that uses the Control Center
rewrite path rewriting is a convenient and effective method. You can rewrite the path to minimize program code changes.This article is not just about path rewriting. It describes the path rewriting process from the project and practice.
In my previous article, I described how to handle Server Load balancer. See apahce (2.2.11 edition) + Tomcat + mod_jk integration and basic load balancing practices in windows. This article is rough. This article is b
PHP-developed API multi-version management practices
This article focuses on mobile Internet clients that need to be compatible with the old version. force upgrade to the latest version of the app is not discussed here.
In the bugtags.com project, our version complies with the following specifications.1.0.1Major features, minor updates, bug fixesOur version list is as follows:
1.0, 1.1, 1.2, 1.3, 1.42.0,
the credential information, which of course is not required and optional.2.4 API keyword (API key)Every request for an API contains a keyword that uniquely identifies the user.2.5 OAuth 1.X/2HTTP-based interactions and workflows that authorize the use of resources such as APIs, the Web, and so on.OAuth includes a step to authenticate indirectly, but does not ann
Original: "Baidu map API" published static diagram API! Just a URL, you can display custom Baidu map!Summary:Baidu map Static Figure api! You do not need to perform any special actions to display this picture on a Web page.No JavaScript is required. We just need to create a URL
First, let's talk a little nonsense:
1. For the name tonylpProgramFrom the employee's perspective, I like to write tonylp, using the camel method, but I don't know what it was for at that time. The name of the blog garden will be changed to tony_lp. If I remember correctly, this should be a naming method in C ++. You are welcome to shoot a brick, because I can't remember it.
2. I like the blog park very much. There are a lot of big cows in this place. I also like to post articles here, but I
Ogre api reference ogre API Online Reference URL
Http://www.ogre3d.org/docs/api/html/Introductionwhat is this?
This is the complete api reference for ogre; contained within are the specifications for each class and the methods on those classes which you can refer to when wri
be as follows:
@ Html. actionlink ("Click me to go to another area", "Index", new {Area = ""})
URL architecture best practices
I have talked a lot about the URL structure above. In recent years, the design of the corresponding application URL has been paid more and more attention, and some important designs have
Web APIs have become more and more popular in recent years, and the simplicity of API design has become particularly important in multi-backend system interaction applications. In general, RESTful APIs are used as our Web API. This article describes some of the best practices for designing simple RESTful APIs.A noun used instead of a verbUsing nouns to define int
API test Best Practices-AuthenticationApplicable class: Advanced1. OverviewAuthentication is typically defined as an activity that confirms the identity of a resource, in which the identity of the resource refers to the consumer of the API (or, in other words, the caller). Once a user's authentication has passed, he will be granted access to resources or APIs tha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.